home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZINTSTK.C < prev    next >
Text File  |  1989-04-09  |  716b  |  22 lines

  1. #include <jaz.h>
  2. /*
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │jzintstk                                     │
  5. │Initialize the directory stack structure before the first call to jzpushdir │
  6. │Synopsis:                                     │
  7. │  jzintstk(&whead);                                 │
  8. │  jzpshdir(&whead);                                 │
  9. │  chdir("\\");                                                              │
  10. │  ...                                         │
  11. │  jzpshdir(&whead);                                 │
  12. │  jzpopdir(&whead);                                 │
  13. └────────────────────────────────────────────────────────────────────────────┘
  14. */
  15.  
  16. jzintstk(fhead)
  17. TSTKHEAD *fhead;
  18. {
  19.   fhead->numitems = 0;            /* init stack to zero items */
  20.   fhead->first = fhead->last = 0;    /* init pointers */
  21. }
  22.